// user-defined function
function getDistrict(element) {
	var city = $(element).val();
	$.ajax({
		url:"/register/get-district",
		type:"POST",
		data:"city="+city,
		success: function(response) {
			$("#district").html(response);
		}
	});
}

function load_data_car_images(motor_type){
    $.ajax({
		url:"/vip/get-model",
		type:"POST",
		data:"motor_type="+motor_type,
		success: function(response) {
			$("#car_images").html(response);
		}
	});
}
function closeFanpage(){
	$.ajax({
		url:"/ajax/close-fanpage",
		type:"POST",
		success: function(response) {
			$(".fanpage-face").hide();
		}
	});
}